package com.forever7776.life.core.common.vo;


import com.forever7776.life.core.common.constants.GlobalConstants;
import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 * 博客基础数据
 * </p>
 *
 * @author kz
 * @date 2018-03-24
 */
public class UserBlogBaseVO {

    /**
     * 博客ID
     */
    private Integer blogId;
    /**
     * 博客标题
     */
    private String blogTitle;

    /**
     * 博客封面
     */
    private String blogBanner;


    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public String getBlogBanner() {
        return blogBanner;
    }

    public void setBlogBanner(String blogBanner) {
        if(StringUtils.isEmpty(blogBanner)){
            blogBanner = GlobalConstants.USER_HEAD_DEFAULT;
        }

        this.blogBanner = blogBanner;
    }

    @Override
    public String toString() {
        return "UserBlogBaseVO{" +
                "blogId=" + blogId +
                ", blogTitle='" + blogTitle + '\'' +
                ", blogBanner='" + blogBanner + '\'' +
                '}';
    }
}
